package com.atguigu.pojo;

import java.io.Serializable;

/**
 * @program: myIDEA
 * @description:
 * @author: Mr.zjx
 * create: 2021-07-03-22-39
 **/
    public class Person implements Serializable,Cloneable {
        private String name;
        private int age;
        public void eat(){
            System.out.println("人在吃饭");
        }
        public void sleep(String s,int i, double d){
            System.out.println("人在睡觉"+s+i+d);
        }

        public Person() {
        }
        public Person(String name,int age){
            this.name = name;
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        @Override
        public String toString() {
            return "Person{" +
                    "name='" + name + '\'' +
                    ", age=" + age +
                    '}';
        }
    }


